package com.liao.ticket.vo.params;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageParams {
    private int page = 1;

    private int pageSize = 10;

    public int getNum() {
        return (page-1)*pageSize;
    }
}
